/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:50 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.societe.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="societe", catalog="dbscoremanager" )
public class Societe implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @Column(name="idSociete", nullable=false)
    private int        idsociete    ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="raisonSociale", length=254)
    private String     raisonsociale ;
    @Column(name="adresseSociete", length=254)
    private String     adressesociete ;
    @Column(name="telSociete")
    private Integer    telsociete   ;
    @Column(name="faxSociete")
    private Integer    faxsociete   ;
    @Column(name="mailSociete", length=254)
    private String     mailsociete  ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Societe()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdsociete( int value )
    {
        this.idsociete = value;
    }
    public int getIdsociete()
    {
        return this.idsociete;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : raisonSociale ( VARCHAR ) 
    public void setRaisonsociale( String value )
    {
        this.raisonsociale = value;
    }
    public String getRaisonsociale()
    {
        return this.raisonsociale;
    }

    //--- DATABSE MAPPING : adresseSociete ( VARCHAR ) 
    public void setAdressesociete( String value )
    {
        this.adressesociete = value;
    }
    public String getAdressesociete()
    {
        return this.adressesociete;
    }

    //--- DATABSE MAPPING : telSociete ( INT ) 
    public void setTelsociete( Integer value )
    {
        this.telsociete = value;
    }
    public Integer getTelsociete()
    {
        return this.telsociete;
    }

    //--- DATABSE MAPPING : faxSociete ( INT ) 
    public void setFaxsociete( Integer value )
    {
        this.faxsociete = value;
    }
    public Integer getFaxsociete()
    {
        return this.faxsociete;
    }

    //--- DATABSE MAPPING : mailSociete ( VARCHAR ) 
    public void setMailsociete( String value )
    {
        this.mailsociete = value;
    }
    public String getMailsociete()
    {
        return this.mailsociete;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
